﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WsdShop.Model.Enum;

namespace WsdShop.Model
{
    public class DrawRecord
    {
        public int Id { get; set; }

        /// <summary> 
        /// 抽奖人Id  
        /// </summary> 
        public int MemberId { get; set; }

        /// <summary> 
        /// 抽奖人名字
        /// </summary> 
        public string MemberName { get; set; }

        /// <summary> 
        /// 是否中奖  
        /// </summary> 
        public bool IsWinning { get; set; }

        /// <summary> 
        ///   抽奖活动Id
        /// </summary> 
        public int DrawId { get; set; }

        /// <summary>
        /// 奖品类型：0谢谢参与，1实体商品，2优惠券，3奖励积分
        /// </summary>
        public RewardType RewardType { get; set; }
        /// <summary> 
        ///   奖品Id
        /// </summary> 
        public int DrawRewardId { get; set; }
        /// <summary>
        /// 奖品名称
        /// </summary>
        public string DrawRewardName { get; set; }
        /// <summary> 
        /// 奖励商品Id  
        /// </summary> 
        public int ProductSecpId { get; set; }
        /// <summary>
        /// 商品规格名称
        /// </summary>
        public string ProductName { get; set; }
        private DateTime addTime = DateTime.Now;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get { return addTime; } set { addTime = value; } }

        private bool isDeleted = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return isDeleted; } set { isDeleted = value; } }

        /// <summary>
        /// 奖品发放步骤
        /// </summary>
        public StepType StepType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 消耗积分
        /// </summary>
        public int ConsumePoints { get; set; }

        /// <summary>
        /// 奖品份数（若是积分奖励，则为积分数）
        /// </summary>
        public int ProductNum { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        public string  District { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string Consignee { get; set; }

        /// <summary>
        /// 邮政编码
        /// </summary>
        public string Zipcode { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
    }
}
